﻿/*----------------------------------------------------------------
  //Copyright (C) 2012 赵国伟
  //文件功能描述：订单详细页面管理
  //创建人：赵国伟
  //生成时间：2012/03/17 16:15:00
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Shopping.Common;
using Shopping.Model;
using Shopping.BLL;

public partial class Home_OrderInfo : BaseUserPage
{
    private readonly OrdersManage bllOrder = new OrdersManage();

    protected OrderInfo o;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            int orderId = Utility.G<int>("OrderID");
            o = bllOrder.GetOrder(orderId);
            if (o == null || o.Order.UserID != this.UserID)
            {
                Response.Write("您查看的订单不存在或已被删除！");
                Response.End();
            }
      
        }
    }
  
}